package com.softa.common.quartz.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.stereotype.Component;

/**
 * description goes here.
 *
 * @author 杨磊
 * @date 2019/4/18 22:36
 * @since 1.0
 **/
@Component
@JobHandler("demoJobHandler")
public class DemoJobHandler extends IJobHandler {

    @Override
    public ReturnT<String> execute(String s) throws Exception {
        System.out.println(System.currentTimeMillis()+"的值为："+s);
        return new ReturnT();
    }
}
